#region Usings

using NUnit.Framework;

#endregion

namespace Karma.Framework.Core.UnitTest
{
    public class AbstractWebTestCase
    {
        [TestFixtureSetUp]
        public virtual void FixtureInit()
        {
            //string host;
            //string application;

            //string appVirtualDir = "/";
            //string appPhysicalDir = @"c:\projects\SubtextSystem\Subtext.Web\";
            //string page = application.Replace("/", string.Empty) + "/default.aspx";
            //string query = string.Empty;
            //TextWriter output = null;

            //SimulatedHttpRequest workerRequest = new SimulatedHttpRequest(appVirtualDir, appPhysicalDir, page, query, output, host);
            //HttpContext.Current = new HttpContext(workerRequest);

            //Console.WriteLine("Request.FilePath: " + HttpContext.Current.Request.FilePath);
            //Console.WriteLine("Request.Path: " + HttpContext.Current.Request.Path);
            //Console.WriteLine("Request.RawUrl: " + HttpContext.Current.Request.RawUrl);
            //Console.WriteLine("Request.Url: " + HttpContext.Current.Request.Url);
            //Console.WriteLine("Request.ApplicationPath: " + HttpContext.Current.Request.ApplicationPath);
            //Console.WriteLine("Request.PhysicalPath: " + HttpContext.Current.Request.PhysicalPath);
        }

        [SetUp]
        public virtual void Init()
        {
        }

        [TearDown]
        public virtual void Terminate()
        {
        }

        [TestFixtureTearDown]
        public virtual void TerminateAll()
        {
        }
    }
}